package cn.uniqueww.javadesignpatterns.demos.design.fstGroup;

import org.springframework.beans.factory.InitializingBean;

/**
 * 计算金额
 *
 * @since 2024/1/17 11:35 上午
 */
public abstract class ComputedAmount implements InitializingBean {
    /**
     * 计算金额
     *
     * @param price   单价
     * @param count   数量
     * @return 打折后的金额
     */
    public abstract double  computedAmount(int price, int count);

}
